package com.fagejiang.neo4j.model;

import com.fagejiang.neo4j.constants.NeoConsts;
import lombok.Data;
import lombok.NonNull;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Relationship;

/**
 * 你还没有写描述儿~
 *
 * @author <发哥讲Java-694204477@qq.com>
 * @version 1.0
 * @date 2021-07-06 17:23
 */
@Data
@NodeEntity
public class Alipay {
    @Id
    private Long id;
    /**
     * 支付宝账号id
     */
    @NonNull
    private String account;

    /**
     * 经济交易,转出的账户
     */
//    @Relationship(NeoConsts.R_ACCOUNT_OF_ACCOuNT)
//    private List<Alipay> alipays;
//
    @Relationship(NeoConsts.R_IDENTITY_OF_ALIPAY)
    private Identity identity;
}
